<template>
  <div>
    <van-tabs v-model="activeName" sticky>
      <van-tab title="推荐" name="a">
        <StoreTj />
      </van-tab>
      <van-tab title="3C配件" name="b">
        <StoreQt :LkArr="$store.state.goods.PJArr" type="PJArr" />
      </van-tab>
      <van-tab title="手版公仔" name="c">
        <StoreQt :LkArr="$store.state.goods.SzArr" type="SzArr" />
      </van-tab>
    </van-tabs>
  </div>
</template>

<script>
import StoreTj from '@/components/whs/store/store-tj.vue';
import StoreQt from '@/components/whs/store/store-qt.vue';

export default {
  data() {
    return {
      activeName: 'a',
    };
  },
  created() {},
  mounted() {
    this.$store.dispatch('PJArr');
    this.$store.dispatch('SzArr');
  },
  components: {
    StoreTj,
    StoreQt,
  },
};
</script>

<style lang="less" scoped></style>
